package com.ocm.commerceinteraction.config;

/**
 * Created by Curry on 2016-4-19.
 */
public class RequestAddr {

    public static String baseUrl = "http://bchat.ocmcom.com";

    private static String getRequestUrl(String addr) {
        return baseUrl + addr + "";
    }

    public static String loginAddr = getRequestUrl("/api/AppUser/login_post");//登录

    public static String uploadImg = getRequestUrl("/api/AppGroup/image_upload");//上传图片

    public static String recommendGroupAddr = getRequestUrl("/api/AppGroup/recommend_group_list");//获取推荐群

    public static String userGroupAddr = getRequestUrl("/api/AppGroup/my_group_list");//获取我的群列表

    public static String searchUserGroupAddr = getRequestUrl("/api/AppGroup/search_group_list/keywords/$keywords/");//获取搜索群列表

    public static String requestJoin = getRequestUrl("/api/AppGroup/user_request_join/");//用户主动请求加入某群

    public static String exitGroup = getRequestUrl("/api/AppGroup/exit_group/group_uniq_id/&group_uniq_id/user_uniq_id/$user_uniq_id/type/$type");//群减人

    public static String dismissGroup = getRequestUrl("/api/AppGroup/dismiss_group");//解散群

    public static String serarchFriList = getRequestUrl("/api/AppUser/get_friend_list");//搜索好友列表

    public static String creatGroup = getRequestUrl("/api/AppGroup/create_group");//创建群

    public static String getGroupInfo = getRequestUrl("/api/AppGroup/group_detail");//获取群信息

    public static String searchUser = getRequestUrl("/api/AppUser/get_user_list");//搜索好友

    public static String addUser = getRequestUrl("/api/AppUser/add_friend_request");//添加好友

    public static String allowAdd = getRequestUrl("/api/AppUser/agree_add_friend");//同意添加好友

    public static String refuseAdd = getRequestUrl("/api/AppUser/refuse_add_friend");//拒绝添加好友

    public static String allowAddGroup = getRequestUrl("/api/AppGroup/agree_add_group");//同意加入群

    public static String refuseAddGroup = getRequestUrl("/api/AppGroup/refuse_add_group");//拒绝添加好友

    public static String editGroupInfo = getRequestUrl("/api/AppGroup/group_edit");//修改群信息

    public static String userDetailInfo = getRequestUrl("/api/AppUser/get_user_detail/");//用户详情

    public static String userDetailInfoInGroup = getRequestUrl("/api/AppGroup/group_user_detail/");//群里的用户详情

    public static String addFriendRequest = getRequestUrl("/api/AppUser/add_friend_request/");//添加好友请求

    public static String addGroupFriendRequest = getRequestUrl("/api/AppGroup/add_group_user_request");//邀请好友加入某群

}
